
<a name="comment<?=$cid?>"></a>
<table cellpadding="0" cellspacing="0" width="100%" style="padding-left: <?=$level?>px;" class="comment_table">
	<tr>
		<td class="c_avatar">
			<?=$avatar?>
			<?php if (is_registered()): ?>
				<p />
				<a href="#" onclick="add_answer(<?=$cid?>, '', <?=$idi?>); return false;">ответить</a> 
				<img src="/static/images/arr.gif" align="absmiddle" />
			<?php endif;?>
		</td>
		<td class="c_body">
			<h3><?=$name?>
		    	<span class="date">&nbsp;&nbsp;&nbsp;<?=$date?>
		    		<a href="#comment<?=$cid?>" class="linkme" title="Ссылка на этот комментарий">#</a>
		    		<?php if (is_moderator()): ?>
		        		<a href="#" onclick="delete_comments(<?=$cid?>, '', <?=$idi?>); return false;" style="margin-left:40px;">
		        			<img src="/images/cut.gif" title="Удалить" align="absmiddle" />
		        		</a>
						<a href="#" onclick="edit_com(<?=$cid?>); return false;">
							<img src="/images/edit.gif" title="Редактировать" align="absmiddle" />
						</a>
						<strong>IP:</strong> 
							<a href="http://www.nic.ru/whois/?ip=<?=$ip?>" title"Информация об <?=$ip?>" target="_blank">
								<?=$ip?>
							</a>
					<?php endif;?>
				</span>
		     	<span class="comm_rating" id="comm_rating_<?=$cid?>">
				
				<?php load_module_view('system', 'rating',  array('rating'=>$rating,'vote'=>$vote,'cid'=>$cid)); ?>

		     	</span>
		     </h3>
			<div id="edit_comment_<?=$cid?>">
				<?php if ($rating < -4): ?>
					<a href="#" class="" onClick="return show_hidden_comm(<?=$cid?>);" id="hidden_l<?=$cid?>">
						раскрыть комментарий
					</a>
					<span style="display: none;" id="hidden_c<?=$cid?>"><?=$body?></span>
				<?php else: ?>
					<?=$body?>
				<?php endif; ?>
			</div>
		
			<?php if (is_registered()): ?>
				<p />
				<div style="display: none;" id="answer_<?=$cid?>"></div>
			<?php endif;?>
		</td>
	</tr>
</table>

